home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
CRS
/
crs54.d81
/
sgtool13.arc
/
CIA.ARC
/
CIATIMAS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-28
|
487b
|
22 lines
/*
SG C Tools 1.3
(C) 1993 Steve Goldsmith
All Rights Reserved
Compiled with HI-TECH C 3.09 (CP/M-80).
*/
#include <sys.h>
#include <hitech.h>
#include <cia.h>
/* set cia timer a and control reg a */
void settimeracia (ushort C, ushort Latch, uchar CtrlReg)
{
outp(C+ciaTimerALo,(uchar) Latch); /* timer latch lo */
outp(C+ciaTimerAHi,(uchar) (Latch >> 8)); /* timer latch hi */
outp(C+ciaControlA,CtrlReg); /* set timer controls */
}